#[test]
fn basic_iter_test() {
    // iterate consumer fold
    let sum = (1..=100).fold(0, |sum, x| sum + x);
    assert_eq!(5050, sum);

    let v = (1..5).collect::<Vec<i32>>();

    assert_eq!(vec![1, 2, 3, 4], v);
}
